package com.settlement.system.service.impl;

import com.settlement.system.mapper.TblWpStoreConfigMapper;
import com.settlement.system.common.exception.ServiceException;
import com.settlement.system.model.entity.common.TblReceiveRefundShop;
import com.settlement.system.model.entity.common.TblWpStoreConfig;
import com.settlement.system.service.ITblWpStoreConfigService;
import org.springframework.stereotype.Service;
import com.settlement.system.mapper.BaseMapper;
import jakarta.annotation.Resource;

/**
 * WP-仓库配置 服务实现类
 * @author xiaochuan
 * @since 2020-11-18
 */
@Service
public class TblWpStoreConfigServiceImpl extends BaseServiceImpl implements ITblWpStoreConfigService {

    @Resource
    private TblWpStoreConfigMapper tblWpStoreConfigMapper;

    @Override
    public BaseMapper init() {
        return tblWpStoreConfigMapper;
    }

    @Override
    public TblWpStoreConfig getByStoreName(String storeName) throws ServiceException {
        try {
            return tblWpStoreConfigMapper.getByStoreName(storeName);
        } catch (Exception e) {
            throw  new ServiceException(e);
        }
    }
}

